package com.bsoft.gol.hcs.enumcase;


/**
 * @Description: 调研方式
 * @Author: tongtp
 * @Date: 2020/9/4 10:18
 **/
public enum SurveyWayEnum {

	doctor("1", "医生"),
	patient("0", "患者");

	private final String type;

	private final String text;

	SurveyWayEnum(String type, String text) {
		this.type = type;
		this.text = text;
	}

	public static SurveyWayEnum getEnumByKey(String type) {
		for (SurveyWayEnum temp : SurveyWayEnum.values()) {
			if (temp.getType().equals(type)) {
				return temp;
			}
		}
		return null;
	}

	public String getType() {
		return type;
	}

	public String getText() {
		return text;
	}
}
